<%= render :partial => 'menu' -%>

<%= link_to "Add User", :action => 'new' -%>

<br/><br/>      

<h1>Listing users</h1>
<table class="admin-report">
  <tr>
    <td><b>Login</b></td>
    <td><b>Email</b></td>
    <td/>
  </tr>
<% for user in @users%>
  <tr class="<%= cycle('even', 'odd') %>">
    <td valign="top"><%=user.login%></td>
    <td valign="top"><%=user.email%></td>
    <td valign="top">
      <%= link_to "Show", :action => 'show', :id => user -%>
      <%= link_to "Edit", :action => 'edit', :id => user -%>
      <%= link_to "Delete", {:action => 'destroy', :id => user}, :confirm => "Are you sure you want to delete this user?" -%>
    </td>
  </tr>
<% end %>
</table>
<%= render :partial => 'shared/paginate', :locals => {:collection => @users, :options => {}} -%>
